package retry;

import com.zwl.dropshipping.dal.bo.DispatchEventRetryLogWxMsgBo;
import com.zwl.dropshipping.dal.model.EventRetryLogModel;
import com.zwl.dropshipping.jd.jos.wxwoork.JdWXWorkSendClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 重试告警-微信通知
 * @author zhangweilin
 * @date 2023/10/12 11:20
 * @Description:
 */
@Component
public class RetryResultNoticeHandlerWxImpl extends RetryResultNoticeHandlerWxDispatch {



	@Override
	public void hand(EventRetryLogModel eventRetryLogModel, Object[] argArr, Throwable e) {
		//先调度下看是否要真的要发出告警消息
		DispatchEventRetryLogWxMsgBo dispatchEventRetryLogWxMsgBo = dispatch(eventRetryLogModel, argArr, e);
		if (dispatchEventRetryLogWxMsgBo == null) {
			return;
		}
		//执行发送
		sendWxMsg(dispatchEventRetryLogWxMsgBo);
	}

	private void sendWxMsg(DispatchEventRetryLogWxMsgBo dispatchEventRetryLogWxMsgBo) {

	}
}
